package com.ustudy.entity.sns;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.ustudy.core.dao.support.entity.LongIdEntity;

import com.ustudy.entity.iden.RegUser;

/**
 * 版主
 * @author caizh
 *
 */
@SuppressWarnings("serial")
@Entity(name="ForumSectionAdmin")
@Table(name="SNS_FORUM_SECTION_ADMIN")
public class ForumSectionAdmin extends LongIdEntity {
	
	@ManyToOne(cascade={CascadeType.REFRESH},fetch=FetchType.LAZY)
	@JoinColumn(name="USER_ID")
	private RegUser regUser;
	
	@ManyToOne(cascade={CascadeType.REFRESH},fetch=FetchType.LAZY)
	@JoinColumn(name="FS_ID")
	private ForumSection forumSection;
	
	private Long createTime=System.currentTimeMillis();
	
	private String memo;

	public RegUser getRegUser() {
		return regUser;
	}

	public void setRegUser(RegUser regUser) {
		this.regUser = regUser;
	}

	public ForumSection getForumSection() {
		return forumSection;
	}

	public void setForumSection(ForumSection forumSection) {
		this.forumSection = forumSection;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}
}
